package com.hubei.service.impl;

import com.hubei.mapper.UploadMapper;
import com.hubei.service.FileUploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("uploadService")
public class FileUploadServiceImpl implements FileUploadService {

    @Autowired
    private UploadMapper uploadMapper;


    @Override
    public int saveFile(Map<String, String> map) {
        return uploadMapper.saveFile(map);
    }

    @Override
    public List<Map<String, String>> queryList() {
        return uploadMapper.queryFileList();
    }
}
